<?php 
namespace Admin\Controller;

use Think\Controller;

class IndexController extends BaseController{
    public function index(){
        
        $this->display();
    }
    
    // 退出登录
    public function quit(){
        // 删除session
        session('admin',null);
        
        // 跳转到登录界面
        $this->redirect('Login/login');
    } 

    // 测试方法
    public function test(){
        
        $str = 'zhang-li-zhao';
        
        $res = strstr($str,'a');
        
        var_dump($res);
//         $this->show($res);
    }
    
}

?>